home *** CD-ROM | disk | FTP | other *** search
- %%BeginResource: procset Cerilica_VantageProcs 0.63 0
- %%Title: (Vantage Procedures)
- %%Version: 0.63 0
- %%CreationDate: (99/7/7) () % (7-Jul-1999)
- %%Copyright: ((C) 1996 Cerilica All Rights Reserved)
- %%Author: (Simon Birtwistle)
- /D4Dict 40 dict def
- D4Dict begin
-
- /D4PageSize { % <width> <height> D4PageSize
- /setpagedevice where {pop
- 4 dict dup begin 3 1 roll
- /PageSize [ 4 2 roll ] def
- /Orientation 0 def
- /ImagingBBox null def
- end setpagedevice
- } {
- /setpageparams where {pop
- 0 1 4 -1 roll /measure where {pop
- measure 2 copy ge {exch} if pop
- } if
- 4 1 roll setpageparams
- } {pop pop} ifelse
- } ifelse
- }def
-
- /D4Range { % <value> <low> <high> D4Range
- 3 1 roll 2 copy lt {exch} if
- pop 2 1 roll 2 copy gt {exch} if
- pop
- }bind def
-
- % <size> <ang> {D4Spot<n>} setscreen
- /D4Spot0 { % Round spot
- abs exch abs 2 copy add 1
- gt { 1 sub dup mul exch
- 1 sub dup mul add 1
- }
- { dup mul exch
- dup mul add 1 exch
- } ifelse sub
- }def
-
- /D4Spot1 { % Square spot
- dup mul exch dup mul 2 copy gt {exch} if pop
- }def
-
- /D4Spot2 { % Elliptical spot
- dup 5 mul 8 div mul exch dup mul exch add sqrt 1 exch sub
- }def
-
- /D4Spot3 { % Straight line spot
- pop
- }def
-
- /D4Spot4 { % Crosshatch spot
- dup mul exch dup mul 2 copy lt {exch} if pop
- -1 1 D4Range
- }def
-
- /D4GAM 1.0 def
- /D4MAX 1.0 def
- /D4MIN 0.0 def
-
- /D4Transfer { % <highlight%> <shadow%> <gamma> D4Transfer
- D4Dict begin
- /D4GAM exch def
- 100.0 div /D4MAX exch def
- 100.0 div /D4MIN exch def
- end
- [
- { 1.0 exch sub
- dup dup 0 ne exch 1 ne
- and { D4GAM exp
- D4MAX D4MIN sub mul
- D4MIN add
- 0 1 D4Range
- } if
- 1.0 exch sub
- } /exec load currenttransfer /exec load ] cvx settransfer
- }bind def
-
- /D4ST 0 def
- /D4STjoin 1 def
- /D4STshow /show load def
- /D4STashow /ashow load def
- /D4STwidthshow /widthshow load def % not used by PDriverPS
- /D4STawidthshow /awidthshow load def
- /D4STkshow /kshow load def
-
- /D4STset { % <strokewidth> <linejoin> D4STset
- D4Dict begin /D4STjoin exch def /D4ST exch def end
- } bind def
-
- /show { % (string) show
- D4ST 0 eq {D4STshow} {
- % emulate show using charpath
- currentlinewidth exch
- D4ST setlinewidth D4STjoin setlinejoin [] 0 setdash
- {(a) dup 0 4 3 roll put
- false charpath
- currentpoint stroke moveto} forall
- setlinewidth
- } ifelse
- } bind def
-
- /kshow { % {proc} (string) kshow
- D4ST 0 eq {D4STkshow} {
- % emulate kshow using show
- dup 0 1 getinterval show
- dup length 1 sub dup 0 gt {
- % inside here if string is longer than 1 char
- 1 1 3 2 roll {
- % inside here like inside forall
- dup dup 3 index exch get exch
- 3 index exch get 4 index exec
- 1 index exch 1 getinterval show
- } for
- } if
- pop pop
- } ifelse
- } bind def
-
- /ashow { % x y (string) ashow
- D4ST 0 eq {D4STashow} {
- % emulate ashow using charpath
- currentlinewidth exch
- D4ST setlinewidth D4STjoin setlinejoin [] 0 setdash
- {(a) dup 0 4 3 roll put
- false charpath
- currentpoint exch 4 index add exch 3 index add
- stroke moveto} forall
- setlinewidth
- pop pop
- } ifelse
- } bind def
-
- /widthshow { % cx cy char (string) widthshow
- D4ST 0 eq {D4STwidthshow} {
- % emulate widthshow using charpath
- currentlinewidth exch
- D4ST setlinewidth D4STjoin setlinejoin [] 0 setdash
- {dup 3 index eq exch
- (a) dup 0 4 3 roll put
- false charpath currentpoint
- 3 2 roll {exch 5 index add exch 4 index add} if
- stroke moveto} forall
- setlinewidth
- pop pop pop
- } ifelse
- } bind def
-
- /awidthshow { % cx cy char x y (string) awidthshow
- D4ST 0 eq {D4STawidthshow} {
- % emulate awidthshow using charpath
- currentlinewidth exch
- D4ST setlinewidth D4STjoin setlinejoin [] 0 setdash
- {dup 5 index eq exch
- (a) dup 0 4 3 roll put
- false charpath currentpoint
- exch 5 index add exch 4 index add
- 3 2 roll {exch 7 index add exch 6 index add} if
- stroke moveto} forall
- setlinewidth
- pop pop pop pop pop
- } ifelse
- } bind def
-
- /D4save [] def
- /D4stack 0 def
- /D4count 0 def
-
- /D4BeginEPS{
- /D4save save store
- /D4stack countdictstack store
- /D4count count 7 sub store
- userdict begin
- /showpage{}def
- 0 setgray 0 setlinecap
- 1 setlinewidth 0 setlinejoin
- 10 setmiterlimit []0 setdash newpath
- /languagelevel where{pop
- languagelevel 1 ne{
- false setstrokeadjust false setoverprint
- }if
- }if
- 4 index sub exch 5 index sub exch 4 2 roll
- 4 index sub exch 5 index sub exch 6 4 roll
- 6 array astore concat
- 0 0 moveto 1 0 lineto 1 1 lineto 0 1 lineto closepath clip
- newpath
- }bind def
-
- /D4EndEPS{
- count D4count sub{pop}repeat
- countdictstack D4stack sub{end}repeat
- D4save restore
- }bind def
-
- end
- %%EndResource
-
-